package com.hustzp.com.xichuangzhu.poetry.model;

import android.os.Parcelable;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;
import com.avos.avoscloud.AVUser;

import java.util.Date;

/**
 * Copyright (C) 2015 The huimai mobile client Project
 * All right reserved.
 *
 * @author: wuzhimin@huimai365.com
 * @date: 2016/5/31 11:44
 * @Description:
 */
@AVClassName("PostComment")
public class PostComment extends AVObject {
    public static final Parcelable.Creator CREATOR = AVObject.AVObjectCreator.instance;
    public static final String USER = "user";
    public static final String UPVOTESCOUNT = "upvotesCount";
    public static final String CONTENT = "content";
    public static final String TARGETUSER = "targetUser";
    public static final String CREATEDAT = "createdAt";
    private boolean isTop;

    public PostComment() {

    }

    public AVUser getUSER() {
        return getAVObject(USER);
    }

    public int getUPVOTESCOUNT() {
        return getInt(UPVOTESCOUNT);
    }

    public void setUpvotescount(int upvotescount) {
        put("upvotesCount", upvotescount);
    }

    public String getCONTENT() {
        return getString(CONTENT);
    }

    public String getTARGETUSER() {
        return getString(TARGETUSER);
    }

    public Date getCREATEDAT() {
        return getDate(CREATEDAT);
    }

    public boolean isTop() {
        return isTop;
    }

    public void setTop(boolean top) {
        isTop = top;
    }
}
